package com.wang.other_test.ThreadTest;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author: lvyan
 * @date: 2023/1/31
 * @description:
 */
@Configuration
@EnableAsync
public class ExcutorConfig {
//    @Bean(name = "executorCreator")
//    public ExecutorService createExecutor(){
//        return new ThreadPoolExecutor(5, 50, 1L,
//                TimeUnit.MILLISECONDS, new LinkedBlockingDeque<Runnable>(1000), Executors.defaultThreadFactory(),
//                new ThreadPoolExecutor.CallerRunsPolicy ());
//    }
}
